package com.devunion.bogdan.model.project.dao;

import com.devunion.bogdan.model.project.*;
import com.devunion.bogdan.persistence.BaseDaoObject;

import java.io.Serializable;
import java.util.*;


/**
 * <p>Hibernate implementation of <code>UserDao</code></p>
 *
 * @author Viktar Liaskovich
 */
public class HibernateOntologyPropertyDao extends BaseDaoObject<OntologyProperty> implements OntologyPropertyDao {

    /**
     * {@inheritDoc}
     */
    public OntologyProperty getByKey(Serializable key) {
        return (OntologyProperty) hibernateTemplate.get(OntologyProperty.class, key);
    }

    /**
     * {@inheritDoc}
     */
    public List<OntologyProperty> loadAll() {
        return hibernateTemplate.loadAll(OntologyProperty.class);
    }
}